<template>
    <div id="app">
        <Aside />
        <div class="fc-main">
          <div class="main-content">
              <mj-back-top></mj-back-top>
              <router-view />
          </div>
        </div>
    </div>
</template>

<script>
import Aside from '@/components/Aside'
import './assets/css/common.css'
import './assets/font/iconfont.css'
import '/public/css/style.css'
// import './assets/css/theme-1.css'

// prism 代码高亮插件
import '/public/prism/prism.js'
import '/public/prism/prism.css'

export default {
  name: 'App',
  components: { Aside },
  watch: {
      '$route':'getPath',
  },
  methods: {
    getPath(){
      this.$nextTick(()=> {
          Prism.highlightAll() //重新渲染代码高亮插件,全局
      })
    }
  }
}
</script>

